+2000-02-19 Jonathan Blandford <jrb@redhat.com>
+
+ * gdk-pixbuf/io-gif.c (new_context): fix case where initial
+ colormap entry is Transparent.
+
2000-02-19 Owen Taylor <otaylor@redhat.com>
* gdk-pixbuf/pixops/pixops.c (scale_pixel): Fix error in
if ((context->block_buf[0] & 0x1) != 0) {
context->gif89.transparent = context->block_buf[3];
} else {
- context->gif89.transparent = FALSE;
+ context->gif89.transparent = -1;
}
}
{
guchar *pixel = NULL;
- if (context->gif89.transparent) {
+ if (context->gif89.transparent != -1) {
pixel = dest + (context->draw_ypos + offset) * gdk_pixbuf_get_rowstride (context->pixbuf) + context->draw_xpos * 4;
*pixel = context->color_map [0][(guchar) v];
*(pixel+1) = context->color_map [1][(guchar) v];
if (context->pixbuf == NULL) {
context->pixbuf = gdk_pixbuf_new (ART_PIX_RGB,
- context->gif89.transparent,
+ context->gif89.transparent != -1,
8,
context->width,
context->height);
}
bound_flag = TRUE;
- if (context->gif89.transparent) {
+ if (context->gif89.transparent != -1) {
temp = dest + context->draw_ypos * gdk_pixbuf_get_rowstride (context->pixbuf) + context->draw_xpos * 4;
*temp = context->color_map [0][(guchar) v];
*(temp+1) = context->color_map [1][(guchar) v];